<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ include file="global.jsp" %>

<%
    //单位
	Map danWei = XiaLaLiebiaoInfos.GetAllDanWei();
    String danwei_html_option = XiaLaLiebiaoInfos.getHtmlOption(danWei);
    //类别
    Map leiBie = XiaLaLiebiaoInfos.GetAllLeiBie();
    String leiBie_html_option = XiaLaLiebiaoInfos.getHtmlOption(leiBie);

    //项目
    String xiangMu_html_option = XiangMuManager.getXiangMuHtmlOption( pageUser.getId() );
	
	//常用意见
	Map cyyj =  XiaLaLiebiaoInfos.GetAllYiJian();
	String cyyj_html_option =  XiaLaLiebiaoInfos.getHtmlOption(cyyj);
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>采购比价单</title>

<style type="text/css">  
   body{margin:0px;}
   .fontff{
          TEXT-ALIGN:center;                   
   }
   .unbloud{   
            BORDER-RIGHT:   #000000   0px   solid;   BORDER-TOP:   #000000   0px   solid;   BORDER-LEFT:   #000000   0px   solid;   BORDER-BOTTOM:   #000000   1px   solid   
   }
   .unbloud_error{   
            BORDER-RIGHT:   #000000   0px   solid;   BORDER-TOP:   #000000   0px   solid;   BORDER-LEFT:   #000000   0px   solid;   BORDER-BOTTOM:   #ff0000   1px   solid   
   }
   .error{border:1px solid #ff0000;}
   .correct{font-size : 11px;}
   body,td,th,input {
	font-size: 12px;
   }
#productSearch_layer {
	position:absolute;
	padding:20px;
0 20px;	background: #D5D5D5;
	border:1px solid #999999;
	width:522px;
	height:234px;
	left:100px;
	top:138px;
	z-index:2;
}
    </style>

<link href="css/basic.css" rel="stylesheet" type="text/css" />
<link href="styleTable.css" type="text/css" rel="Stylesheet" />

<style type="text/css">
<!--
#cyyj {
	position:absolute;
	left:528px;
	top:485px;
	width:149px;
	height:38px;
	z-index:3;
}
-->
</style>
</head>

<script type="text/javascript"> 
/*
  声明全局变量
*/
//表格中厂家左边的列数
var S_leftcellsNum = 5;
//表格中厂家右边的列数
var S_rightcellsNum = 1;
//表格中商品上面的行数
var S_headrowNum = 1;
//表格中商品下面的行数
var S_bottomrowNum = 2;
//默认商品数
var S_defaultProductNum = 5;
//默认厂家数
var S_defaultFactoryNum = 3;
//商品固定列数
var s_product_solid_cells = 4;

function getFactoryNums()
{
      var tab=document.getElementById("testTbl") 
      //表格行数
      var rows = tab.rows.length ;
      //表格列数
      var cells = tab.rows.item(1).cells.length ;
	  
	  //引用全局变量
	  var factoryNum = cells - S_leftcellsNum - S_rightcellsNum;
	  return factoryNum;
}

function getProductNums()
{
      var tab=document.getElementById("testTbl") 
      //表格行数
      var rows = tab.rows.length ;
	  
	  //引用全局变量
	  var productNum = rows - S_headrowNum - S_bottomrowNum;
	  return productNum;
}

function getTotalRows(){
  var cells = tab.rows.item(1).cells.length ;
  //表格行数
  var rows = tab.rows.length ;
  return rows;
}

function getProAndFact()
{
  var tab=document.getElementById("testTbl") 
      //表格行数
  var rows = tab.rows.length ;
	  
	  //引用全局变量
  var productNum = rows - S_headrowNum - S_bottomrowNum;
  alert ('商品数：'+ productNum);
}

function addRow(obj) 
{ 
  var tab=document.getElementById("testTbl") 
  //表格行数
  var rows = tab.rows.length ;
  //表格列数
  var cells = tab.rows.item(1).cells.length ;

  var factoryNum = cells - S_leftcellsNum - S_rightcellsNum;
  var productNum = rows - S_headrowNum - S_bottomrowNum;
  //set the row id
  var curr_rownum = rows - S_bottomrowNum;

  //添加一行 
  var newTr = testTbl.insertRow(curr_rownum);
  newTr.id = "tr" + curr_rownum;
  //5个固定的列
  var newTd = newTr.insertCell();
  newTd.innerHTML='<div  align="center">'+curr_rownum+'</div>';
  var newTd = newTr.insertCell();
  newTd.innerHTML='<input name="i' + curr_rownum + '_1" type="text" id="i' + curr_rownum + '_1" size="12" />';
  newTd = newTr.insertCell();
  newTd.innerHTML='<input name="i' + curr_rownum + '_2" type="text" id="i' + curr_rownum + '_2" size="8" />';
  newTd = newTr.insertCell();
  newTd.innerHTML='<input name="i' + curr_rownum + '_3" type="text" id="i' + curr_rownum + '_3" size="4" />';  
  newTd = newTr.insertCell();
  newTd.innerHTML='<label><select name="i' + curr_rownum + '_4" id="i' + curr_rownum + '_4"><%=danwei_html_option%></select></label>';
  
  var factorys = factoryNum;
  var currentcellNum = S_leftcellsNum;
  for (i = 1; i <= factorys; i++)
  {
    newTd = newTr.insertCell(currentcellNum);
    newTd.innerHTML = '<div align="center" style="overflow-x:auto;width:114px">' +
	'<input name="bj' + curr_rownum + '_' + i + '" type="text" id="bj' 
	+ curr_rownum + '_' + i + '" size="4" /> <input name="sj' + curr_rownum 
	+ '_' + i + '" type="text" id="sj' + curr_rownum + '_' + i + '" size="4" readonly/>'
	+ '</div>';
	currentcellNum = currentcellNum + 1;
  }
  newTd = newTr.insertCell();
  newTd.innerHTML='<input name="ls_' + curr_rownum + '" type="text" id="ls_' + curr_rownum + '" size="6" />';
  
  //设置row 参数
  document.getElementById("products").value = productNum + 1;
}

function insCell()
{
  /*var tab=document.getElementById("testTbl") 
  //表格行数
  var rows = tab.rows.length ;
  var cells = getcurrentcells();
  var currentcells = cells -1;*/
  var tab=document.getElementById("testTbl") 
  //表格行数
  var rows = tab.rows.length ;
  //表格列数
  var cells = tab.rows.item(1).cells.length ;
	  
  //引用全局变量
  var factoryNum = cells - S_leftcellsNum - S_rightcellsNum;
  var productNum = rows - S_headrowNum - S_bottomrowNum;
  var currentcells = cells -  S_rightcellsNum;

  var x=document.getElementById("tr0").insertCell(currentcells);
  x.innerHTML='<table cellspacing="0" border="0" align="center" with="114">' 
      + '<tr>'
      + ' <td colspan="2" class = "tdOnlyBottom"><div align="center">'
      + ' <input name="cj_' + (factoryNum+1) + '" type="text" id="cj_' + (factoryNum+1) + '" size="9" />'
      + ' </div></td>'
      + '</tr>'
      + '<tr>'
      + ' <td class="tdOnlyRight"><div align="center">报价</div></td>'
      + ' <td class="tdOnlyLeft"><div align="center">审价</div></td>'
      + '</tr>'
      + '  </table>';

  for (i = 1; i <= productNum; i++)
  {
    var trid = "tr" + (i);
	//alert("当前列"+trid);
    x=document.getElementById(trid).insertCell(currentcells);
    x.innerHTML='<div align="center" style="overflow-x:auto;width:114px"><input name="bj' + (i) + '_' + (factoryNum+1) + '" type="text" id="bj' + (i) + '_' + (factoryNum+1) + '" size="4" /> <input name="sj' + (i) + '_' + (factoryNum+1) + '" type="text" id="i' + (i) + '_' + (factoryNum+1) + '" size="4" readonly/></div>';
  }
  var rowid = "trzj";
  //总价当前行
  var zjcurrentcellNum = factoryNum + 1;
  x=document.getElementById(rowid).insertCell(zjcurrentcellNum);
    x.innerHTML='<div align="center" style="overflow-x:auto;width:114px"><input name="bjzj_'+ (factoryNum + 1) + '" type="text" id="bjzj_'+ (factoryNum + 1) + '" size="4" /> <input name="sjzj_'+ (factoryNum + 1) + '" type="text" id="sjzj_'+ (factoryNum + 1) + '" size="4" readonly/></div>';
  rowid = "trlxr";
  //联系人当前行
  var lxcurrentcellNum = factoryNum + 1;
  x=document.getElementById(rowid).insertCell(lxcurrentcellNum);
    x.innerHTML='<DIV align=center><input name="lx_'+ (factoryNum + 1) +'" type="text" id="lx_'+ (factoryNum + 1) +'" size="7" /></div>';
	
	//设置cell 
	document.getElementById("factorys").value = factoryNum + 1;
}

function getrow(obj) 
{ 
      var tab=document.getElementById("testTbl") 
      //表格行数
      var rows = tab.rows.length ;
      //表格列数
      var cells = tab.rows.item(1).cells.length ;
      alert("行数"+rows+"列数"+cells);
} 

function getcurrentrows() 
{ 
      var tab=document.getElementById("testTbl") 
      //表格行数
      var rows = tab.rows.length ;
	  return rows;
} 

function getcurrentcells(obj) 
{ 
      var tab=document.getElementById("testTbl") 

      //表格列数
      var cells = tab.rows.item(1).cells.length ;
      return cells;
} 

function seecode(obj) 
{ 
      var i = document.getElementById("i_see") ;
	  //i.innerHTML = document.all("body").innerHTML;
	  var bodyvalue = document.all("body").innerHTML;
	  i.value = bodyvalue;

      //alert( document.all("body").innerHtml );
	  //alert(i);
	  //i.value = str( document.all("body").innerHTML) );
	  //alert(document.all("body").innerHTML);
}
//显示商品查询
function displayDiv() 
{ 
  //IE 6.0以下下拉列表优先级高，必须先隐藏 
  var product_num = document.getElementById("products").value;
  for (i = 1; i <= product_num; i++)
  {
    document.getElementById("i"+i+"_4").style.display="none";
  }
  
  document.getElementById("productSearch_layer").style.display="block"; 
} 
//隐藏商品查询
function hiddenDiv() 
{ 
  document.getElementById("productSearch_layer").style.display="none"; 
}
//显示常用意见
function displayCYYJ()
{ 
  document.getElementById("cyyj").style.display="block"; 
} 
//提交前做值检查 
function valueCheckOut(){
   var temp_input = document.getElementById("mingCheng")
   var temp_input_value = temp_input.value;
   var has_error = false;
   if ( temp_input_value == ""){
      has_error = true;
      temp_input.className = "unbloud_error";
   }else{
      temp_input.className = "unbloud";
   }
   //必须有一种商品和一个厂家
   temp_input = document.getElementById("i1_1")
   temp_input_value = temp_input.value;   
   if ( temp_input_value == ""){
      has_error = true;
      temp_input.className = "error";
   }else{
      temp_input.className = "correct";
   }
   temp_input = document.getElementById("cj_1")
   temp_input_value = temp_input.value;   
   if ( temp_input_value == ""){
      has_error = true;
      temp_input.className = "error";
   }else{
      temp_input.className = "correct";
   }
   //确定有效商品数
   var defaultPros = document.getElementById("products").value;
   var defaultFacs = document.getElementById("factorys").value;
   for (i = 2; i <= defaultPros; i++)
   {
      if ( document.getElementById("i"+i+"_1").value == "" ){
         document.getElementById("products").value = i - 1;
         defaultPros = i - 1;
      }
   }
   //确定有效厂家数
   for (i = 2; i <= defaultFacs; i++)
   {      
      if (document.getElementById("cj_"+i).value == "" ){
         document.getElementById("factorys").value = i - 1;
         defaultFacs = i - 1;
      }
   }
   //完整性判断
   for (i = 1; i <= defaultPros; i++)
   {
      //4个固定列判断
      for (si=1; si <= s_product_solid_cells; si++){
         temp_input = document.getElementById("i"+i+"_" + si)
         temp_input_value = temp_input.value;   
         if ( temp_input_value == ""){
            has_error = true;
            temp_input.className = "error";
         }else{
            temp_input.className = "correct";
         }
      }
	  //历史单价不能为空
	  temp_input = document.getElementById("ls_" + i)
      temp_input_value = temp_input.value; 
      if ( temp_input_value == ""){
         has_error = true;
         temp_input.className = "error";
      }else{
         temp_input.className = "correct";
      }
	  //报价不能为空
      for (j = 1; j <= defaultFacs; j++){
         temp_input = document.getElementById("bj"+i+"_" + j)
         temp_input_value = temp_input.value;   
         if ( temp_input_value == ""){
            has_error = true;
            temp_input.className = "error";
         }else{
            temp_input.className = "correct";
         }
      }
   }
   //总报价、联系人不能为空
   for (j = 1; j <= defaultFacs; j++){
       //总价
       temp_input = document.getElementById("bjzj_" + j)
       temp_input_value = temp_input.value;   
       if ( temp_input_value == ""){
          has_error = true;
          temp_input.className = "error";
       }else{
          temp_input.className = "correct";
       }
	   //联系人
       temp_input = document.getElementById("lx_" + j)
       temp_input_value = temp_input.value;   
       if ( temp_input_value == ""){
          has_error = true;
          temp_input.className = "error";
       }else{
          temp_input.className = "correct";
       }	   
   }
   if (has_error){
      alert("数据未填完整，请检查表单后重新提交！");
      return false;
   }
  return true;
}

function style_change(obj, has_error, error_styel, correct_style){


}
</script>

<body id="body" bgcolor="#FFFFFF">
<div id="productSearch_layer" style="display:none;background:#E9E9E9">
<input type="button" onClick="hiddenDiv()" value="返回">
<iframe class="TBGen" style="top:2px" ID="UploadFiles" src="product_search.jsp" frameborder=0 scrolling=no width="500" height="300"> </iframe>
</div>

<form name="form1" method="post" action="cgbj_deal.jsp"  onsubmit="return valueCheckOut()">
<table width="81%" border="1">
	<tr>
		<td colspan="3">
		<table width="100%" height="40" border="0" cellpadding="2"
			cellspacing="2">
			<tr>
				<td width="73%">
				<div align="center"><input name="mingCheng" type="text"
					id="mingCheng" class="unbloud"
					style="mingcheng" /> 采购比价单</div>				</td>
				<td width="27%">单据编号： <input name="danJuBiaoHao" type="text"
					id="danJuBiaoHao" class="unbloud"
					style="font-size:12px;height:18px;width:90px;"  readonly="readonly" value="<%=CaiGouBiaoJia.getDangJuBianHao(pageUser.getId()) %>"/></td>
			</tr>
		</table>		</td>
	</tr>
	<tr>
		<td colspan="3">
		<table width="100%" border="0" cellpadding="2" cellspacing="2">
			<tr>
				<td width="73%"><label>申购项目 <select name="xiangMuId"
					id="xiangMuId">
					<%=xiangMu_html_option %>
				</select>
		        类别：
				     <select
					name="biaoLeiXingMing" id="biaoLeiXingMing">
					<%=leiBie_html_option %>
				</select> </label></td>
				<td width="27%">日期：2008年月9月10号</td>
			</tr>
		</table>		</td>
	</tr>

	<tr>
		<td width="2%">
		<div align="center">情况汇总</div>		</td>
		<td width="64%">
		<table id="testTbl" border=1>
			<tr id="tr0">
				<td width="12">
				<div align="center">序号</div>				</td>
				<td width="96">
				<div align="center">品名</div>				</td>
				<td width="56" id="b11">
				<div align="center">规格型号</div>				</td>
				<td width="28" id="b11">
				<div align="center">数量</div>				</td>
				<td width="48" id="b11">
				<div align="center" style="overflow-x:auto;width:45px">计量单位</div>				</td>
				<td width="91" align="center" id="b11">
				<table width="100%" cellspacing="0" border="0" align="center">
					<tr>
						<td colspan="2" class = "tdOnlyBottom">
						<div align="center"><input name="cj_1" type="text" id="cj_1"
							size="12" /></div>						</td>
					</tr>
					<tr>
						<td class="tdOnlyRight">
						<div align="center">报价</div>						</td>
						<td class="tdOnlyLeft">
						<div align="right">审价</div>						</td>
					</tr>
				</table>				</td>
				<td width="90" id="b11">
				<table width="104" cellspacing="0" border="0" align="center">
					<tr>
						<td colspan="2">
						<div align="center" class = "tdOnlyBottom"><input name="cj_2" type="text" id="cj_2"
							size="12" /></div>						</td>
					</tr>
					<tr>
						<td class="tdOnlyRight">
						<div align="center">报价</div>						</td>
						<td class="tdOnlyLeft">
						<div align="center">审价</div>						</td>
					</tr>
				</table>				</td>
				<td width="90" id="b11">
				<table width="104" cellspacing="0" border="0" align="center">
					<tr>
						<td colspan="2">
						<div align="center" class = "tdOnlyBottom"><input name="cj_3" type="text" id="cj_3"
							size="12" /></div>						</td>
					</tr>
					<tr>
						<td class="tdOnlyRight">
						<div align="center">报价</div>						</td>
						<td class="tdOnlyLeft">
						<div align="center">审价</div>						</td>
					</tr>
				</table>				</td>
				<td width="56" id="b11">
				<div align="center">
				<table border="0" align="center">
					<tr>
						<td align="center">历史价格</td>
					</tr>
					<tr>
						<td align="center">单价</td>
					</tr>
				</table>
				</div>				</td>
			</tr>
			<tr id="tr1">
				<td align="center">1</td>
				<td><input name="i1_1" type="text" id="i1_1" size="12" /></td>
				<td id="b11"><input name="i1_2" type="text" id="i1_2" size="8" /></td>
				<td id="b11"><input name="i1_3" type="text" id="i1_3" size="4" /></td>
				<td id="b11"><label> <select name="i1_4" id="i1_4">
					<%=danwei_html_option%>
				</select> </label></td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj1_1" type="text" class="fontff" id="bj1_1" size="4" /> <input
					name="sj1_1" type="text" class="fontff" id="sj1_1" size="4"
					readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj1_2" type="text" id="bj1_2" size="4" /> <input
					name="sj1_2" type="text" id="sj1_2" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj1_3" type="text" id="bj1_3" size="4" /> <input
					name="sj1_3" type="text" id="sj1_3" size="4" readonly /></div>				</td>
				<td><input name="ls_1" type="text" id="ls_1" size="6" /></td>
			</tr>
			<tr id="tr2">
				<td align="center">2</td>
				<td><input name="i2_1" type="text" id="i2_1" size="12" /></td>
				<td id="b11"><input name="i2_2" type="text" id="i2_2" size="8" /></td>
				<td id="b11"><input name="i2_3" type="text" id="i2_3" size="4" /></td>
				<td id="b11"><label> <select name="i2_4" id="i2_4">
					<%=danwei_html_option%>
				</select> </label></td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj2_1" type="text" id="bj2_1" size="4" /> <input
					name="sj2_1" type="text" id="sj2_1" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj2_2" type="text" id="bj2_2" size="4" /> <input
					name="sj2_2" type="text" id="sj2_2" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj2_3" type="text" id="bj2_3" size="4" /> <input
					name="sj2_3" type="text" id="sj2_3" size="4" readonly /></div>				</td>
				<td><input name="ls_2" type="text" id="ls_2" size="6" /></td>
			</tr>
			<tr id="tr3">
				<td align="center">3</td>
				<td><input name="i3_1" type="text" id="i3_1" size="12" /></td>
				<td id="b11"><input name="i3_2" type="text" id="i3_2" size="8" /></td>
				<td id="b11"><input name="i3_3" type="text" id="i3_3" size="4" /></td>
				<td id="b11"><label> <select name="i3_4" id="i3_4">
					<%=danwei_html_option%>
				</select> </label></td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj3_1" type="text" id="bj3_1" size="4" /> <input
					name="sj3_1" type="text" id="sj3_1" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj3_2" type="text" id="bj3_2" size="4" /> <input
					name="sj3_2" type="text" id="sj3_2" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj3_3" type="text" id="bj3_3" size="4" /> <input
					name="sj3_3" type="text" id="sj3_3" size="4" readonly /></div>				</td>
				<td><input name="ls_3" type="text" id="ls_3" size="6" /></td>
			</tr>
			<tr id="tr4">
				<td align="center">4</td>
				<td><input name="i4_1" type="text" id="i4_1" size="12" /></td>
				<td id="b11"><input name="i4_2" type="text" id="i4_2" size="8" /></td>
				<td id="b11"><input name="i4_3" type="text" id="i4_3" size="4" /></td>
				<td id="b11"><label> <select name="i4_4" id="i4_4">
					<%=danwei_html_option%>
				</select> </label></td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj4_1" type="text" id="bj4_1" size="4" /> <input
					name="sj4_1" type="text" id="sj4_1" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj4_2" type="text" id="bj4_2" size="4" /> <input
					name="sj4_2" type="text" id="sj4_2" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj4_3" type="text" id="bj4_3" size="4" /> <input
					name="sj4_3" type="text" id="sj4_3" size="4" readonly /></div>				</td>
				<td><input name="ls_4" type="text" id="ls_4" size="6" /></td>
			</tr>
			<tr id="tr5">
				<td align="center">5</td>
				<td><input name="i5_1" type="text" id="i5_1" size="12" /></td>
				<td id="b11"><input name="i5_2" type="text" id="i5_2" size="8" /></td>
				<td id="b11"><input name="i5_3" type="text" id="i5_3" size="4" /></td>
				<td id="b11"><label> <select name="i5_4" id="i5_4">
					<%=danwei_html_option%>
				</select> </label></td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj5_1" type="text" id="bj5_1" size="4" /> <input
					name="sj5_1" type="text" id="sj5_1" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj5_2" type="text" id="bj5_2" size="4" /> <input
					name="sj5_2" type="text" id="sj5_2" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bj5_3" type="text" id="bj5_3" size="4" /> <input
					name="sj5_3" type="text" id="sj5_3" size="4" readonly /></div>				</td>
				<td><input name="ls_5" type="text" id="ls_5" size="6" /></td>
			</tr>
			<tr id="trzj">
				<td colspan="5" align="center">总价</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bjzj_1" type="text" id="bjzj_1" size="4" /> <input
					name="sjzj_1" type="text" id="sjzj_1" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bjzj_2" type="text" id="bjzj_2" size="4" /> <input
					name="sjzj_2" type="text" id="sjzj_2" size="4" readonly /></div>				</td>
				<td id="b11">
				<div align="center" style="overflow-x:auto;width:114px"><input
					name="bjzj_3" type="text" id="bjzj_3" size="4" /> <input
					name="sjzj_3" type="text" id="sjzj_3" size="4" readonly /></div>				</td>
				<td>&nbsp;</td>
			</tr>
			<tr id="trlxr">
				<td colspan="5" align="center">联系人(联系方式)</td>
				<td id="b11">
				<div align="center"><input name="lx_1" type="text" id="lx_1"
					size="7" /></div>				</td>
				<td id="b11">
				<div align="center"><input name="lx_2" type="text" id="lx_2"
					size="7" /></div>				</td>
				<td id="b11">
				<div align="center"><input name="lx_3" type="text" id="lx_3"
					size="7" /></div>				</td>
				<td>&nbsp;</td>
			</tr>
		</table>		</td>
		<td width="34%" valign="top">
		
		<table width="100%" border="0" cellspacing="0" height="100%">
			<tr>
				<td height="10" class="tdOnlyBottom">
					<div align="center">备注</div>
				<td>
			</tr>
			<tr height="180"> 
				<td class="tdOnlyTop">
				<textarea name="YouBianBeiZhu"
					rows="10" id="YouBianBeiZhu"
					style="width:100%;height:100%;">
					</textarea> 
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td><span style="width: 12px">审核意见</span></td>
		<td colspan="2">
		<table width="100%" border="1">
			<tr height="80">
				<td width="24%"><span
					style="height: 40px; width: 150px; text-align: left;">技术备注：</span></td>
				<td width="76%"><textarea name="XiaMianBeiZhu" cols="<%=3 %>" 
					rows="3" id="XiaMianBeiZhu" 
					style="width:100%;height:100%;"> </textarea></td>
			</tr>
			<tr height="80">
				<td><span style="width: 150px; height: 21px; text-align: left">项目组意见:</span></td>
				<td>&nbsp;
				
				 </td>
			</tr>
			<tr height="80">
				<td><span style="width: 150px; text-align: left;">采购部意见:</span></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="80">
				<td><span style="width: 150px; text-align: left">比价部意见:</span></td>
				<td>&nbsp;

					</td>
			</tr>
			<tr height="80">
				<td><span style="width: 150px; text-align: left">中心总经理批示:</span></td>
				<td>&nbsp;

					</td>
			</tr>
			<tr height="80">
				<td><span style="width: 150px; text-align: left;">分管总裁批示:</span></td>
				<td>&nbsp;
				</td>
			</tr>
		</table>
	  </td>
	</tr>
	<tr>
	<td colspan="3" align="right" bgcolor="#FFFFFF">
	 采购员： <%=pageUser.getXingMing() %>
	</td>
	</tr>
</table>
<br />
<input type="button" id="add" onClick="addRow();" value="增加商品" /> 
<input
	type="button" onClick="insCell()" value="增加供应商">
<label></label>
<label>
<input
	type="submit" name="Submit" value="提交"> <input type="button"
	onClick="displayDiv()" value="商品查询"></label> <input name="row"
	type="hidden" id="row" value="7"> <input name="column "
	type="hidden" id="column " value="7"> <INPUT id=factorys
	type=hidden value=3 name=factorys> <input id=products
	type=hidden value=5 name=products>
 <input id=yuanGongId	type=hidden value=<%=pageUser.getId() %> name=yuanGongId>
</form>

</body>
</html>
